<?php
session_start();
include_once '../connection/connection_database.php';
include_once 'controller/default.php';
include_once 'language/vn.php';
include_once 'language/url.php';
error_reporting  (E_ERROR | E_WARNING | E_PARSE);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <head>
        <title>Bravolaw Admin</title>
        <link rel="stylesheet" href="<?= $url["home"] ?>/css/style_all.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?= $url["home"] ?>/css/style1.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?= $url["home"] ?>/css/jquery-ui.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?= $url["home"] ?>/css/jquery.wysiwyg.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?= $url["home"] ?>/css/dataTables.css" type="text/css" media="screen" />
        
        <script type='text/javascript' src='<?= $url["home"] ?>/js/jquery-1.7.2.min.js'></script>
        <script type='text/javascript' src='<?= $url["home"] ?>/js/sortable/jquery.dataTables.js'></script>
        <script type='text/javascript' src='<?= $url["home"] ?>/js/jquery-ui.js'></script>
        <script type='text/javascript' src='<?= $url["home"] ?>/js/jquery.wysiwyg.js'></script>
        <script type='text/javascript' src='<?= $url["home"] ?>/js/custom.js'></script>
        <script type="text/javascript" src="<?= $url["home"] ?>/checkForm/check_validate.js"></script>
        <script type="text/javascript" src="<?= $url["home"] ?>/checkForm/event.js"></script>
        <script type="text/javascript" src="<?= $url["home"] ?>/js/ckfinder/ckfinder.js"></script>
        <script type="text/javascript" src="<?= $url["home"] ?>/js/jquery.tablesorter.js"></script>
        <script type="text/javascript" src="<?= $url["home"] ?>/js/jqueryNoconfig.js"></script>	
    </head>

    <body>
        <div id="top">
            <div id="head">
                <?php include 'index_head.php'; ?>
            </div><!--end head-->

            <div id="bg_wrapper">
                <div id="main">
                    <?php 
                    //$item = explode("[L]", $_GET["menu"]);
                    $menu = $_GET["menu"];
                    $page = $_GET["page"];
                    switch ($menu){
                        //user
                        case 'manager': include 'view/users/user_manager.php'; break;
                        case 'create': include 'view/users/create_user.php'; break;
                        case 'process': include 'controller/user/user_create.php'; break;
                        case 'update' : include 'view/users/user_update.php'; break;
                        case 'delete' : include 'controller/user/user_delete.php'; break;
                        case 'changepass' : include 'view/users/change_pass.php'; break;
                        //Profile
                        case 'profile' : include 'view/users/profile_update.php'; break;
                        //category
                        case 'category' : include 'view/category/category_manager.php'; break;
                        case 'categorycreate' : include 'view/category/category_create.php'; break;
                        case 'categoryprocess' : include 'controller/category/process.php'; break;
                        case 'cateupdate' : include 'view/category/category_update.php'; break;
                        case 'catedelete' : include 'controller/category/category_delete.php'; break;
                        //tags
                        case 'tags' : include 'view/tags/tags_manager.php'; break;
                        case 'tagscreate' : include 'view/tags/tags_create.php'; break;
                        case 'tagsprocess' : include 'controller/tags/process.php'; break;
                        case 'tagsupdate' : include 'view/tags/tags_update.php'; break;
                        case 'tagsdelete' : include 'controller/tags/tags_delete.php'; break;
                        //board
                        case 'board' : include 'view/board/board_manager.php'; break;
                        case 'boardcreate' : include 'view/board/board_create.php'; break;
                        case 'boardprocess' : include 'controller/board/process.php'; break;
                        case 'boardupdate' : include 'view/board/board_update.php'; break;
                        case 'boarddelete' : include 'controller/board/board_delete.php'; break;
                        //page
                        case 'page' : include 'view/page/page_manager.php'; break;
                        case 'pagecreate' : include 'view/page/page_create.php'; break;
                        case 'pagerecycle' : include 'view/page/page_recycle.php'; break;
                        case 'pagetrash' : include 'view/page/page_trash.php'; break;
                        case 'pageprocess' : include 'controller/page/process.php'; break;
                        case 'pageupdate' : include 'view/page/page_update.php'; break;
                        case 'pagedelete' : include 'controller/page/page_delete.php'; break;
                        //
                        //banner
                        //case 'banner' : include 'view/banner/banner_manager.php'; break;
                        case 'banner-manager' : include 'view/banner/banner_manager.php'; break;
                        case 'banner-create' : include 'view/banner/banner_create.php'; break;
                        case 'banner-process' : include 'controller/banner/process.php'; break;
                        case 'banner-right' : include 'view/banner/banner_right.php'; break;
                        case 'bannerupdate' : include 'view/banner/banner_update.php'; break;
                        case 'bannerdelete' : include 'controller/banner/banner_delete.php'; break;
                        //
                        //slider
                        //
                        case 'slider-manager' : include 'view/slider/slider_manager.php'; break;
                        case 'slider-create' : include 'view/slider/slider_create.php'; break;
                        case 'slider-process' : include 'controller/slider/process.php'; break;
                        case 'sliderupdate' : include 'view/slider/slider_update.php'; break;
                        case 'sliderdelete' : include 'controller/slider/slider_delete.php'; break;
                        //
                        //comment
                        //
                        case 'comment' : include 'view/comment/comment_manager.php'; break;
                        case 'commentquestion' : include 'view/comment/comment_question_manager.php'; break;
                        
                        case 'comment-process' : include 'controller/comment/process.php'; break;
                        
                        case 'commentupdate' : include 'view/comment/comment_update.php'; break;
                        case 'commentquestionupdate' : include 'view/comment/comment_question_update.php'; break;
                        
                        case 'commentaccept' : include 'view/comment/comment_accept.php'; break;
                        case 'commentquestionaccept' : include 'view/comment/comment_question_accept.php'; break;
                        
                        case 'commentunaccept' : include 'controller/comment/comment_delete.php'; break;
                        case 'commentdelete' : include 'controller/comment/comment_delete.php'; break;
                        //
                        //question
                        //
                        case 'question' : include 'view/question/question_manager.php'; break;
                        case 'questionaccept' : include 'view/question/question_accept.php'; break;
                        case 'question-process' : include 'controller/question/process.php'; break;
                        case 'questionupdate' : include 'view/question/question_update.php'; break;
                        case 'questionunaccept' : include 'controller/question/question_delete.php'; break;
                        case 'questiondelete' : include 'controller/question/question_delete.php'; break;
                        //
                        //Contact
                        //
                        case 'contact' : include 'view/contact/contact_manager.php'; break;
                        case 'contact-create' : include 'view/contact/contact_create.php'; break;
                        case 'contact-process' : include 'controller/contact/process.php'; break;
                        case 'contactupdate' : include 'view/contact/contact_update.php'; break;
                        case 'contactdelete' : include 'controller/contact/contact_delete.php'; break;
                        //
                        //Contact
                        //
                        case 'hotline-create' : include 'view/hotline/hotline_create.php'; break;
                        case 'hotline-process' : include 'controller/hotline/process.php'; break;
                        //
                        //support
                        //
                        case 'support' : include 'view/support/support_manager.php'; break;
                        case 'support-create' : include 'view/support/support_create.php'; break;
                        case 'support-process' : include 'controller/support/process.php'; break;
                        case 'supportupdate' : include 'view/support/support_update.php'; break;
                        case 'supportdelete' : include 'controller/support/support_delete.php'; break;
                        //
                        //lien ket
                        //
                        case 'lienket' : include 'view/lienket/lienket_manager.php'; break;
                        case 'lienket-create' : include 'view/lienket/lienket_create.php'; break;
                        case 'lienket-process' : include 'controller/lienket/process.php'; break;
                        case 'lienketupdate' : include 'view/lienket/lienket_update.php'; break;
                        case 'lienketdelete' : include 'controller/lienket/lienket_delete.php'; break;
                        //
                        //Script
                        //
                        case 'script' : include 'view/script/script_create.php'; break;
                        case 'script-process' : include 'controller/script/process.php'; break;
                        //
                        //Upload
                        //
                        case 'upload' : include 'view/upload/upload_create.php'; break;
                        case 'upload-process' : include 'controller/upload/process.php'; break;
                        case 'uploadupdate' : include 'view/upload/upload_update.php'; break;
                        case 'uploaddelete' : include 'controller/upload/upload_delete.php'; break;
                        //
                        //index
                        //                    
                        default : include 'index_content.php';
                    }
                    ?>
                </div><!--end main-->

                <div id="sidebar">
                    <?php include 'index_sidebar.php'; ?>
                </div><!--end sidebar-->
            </div><!--end bg_wrapper-->
        </div><!-- end top -->
    </body>
</html>